package com.hs.jhzd.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Blob;


/*物品接受照片表
 *  zpzybh   VARCHAR2(21) primary key not null,
  	wpjszybh VARCHAR2(21),  --JDWPBGXX的ZYBH
  	zp       Byte[],	--照片
  	sjc      VARCHAR2(14),--时间戳
  	xh       VARCHAR2(2)	--照片序号
 */
@Entity
@Data
@Table(name = "zf_wpjszpb")
public class WPJSZPB  {
    @Id
    private String zpzybh;
    private String wpjszybh;
    @JsonIgnore
    private Blob zp;
    private String sjc;
    private String xh;

    public WPJSZPB(String zpzybh, String wpjszybh, Blob zp, String sjc, String xh) {
        this.zpzybh = zpzybh;
        this.wpjszybh = wpjszybh;
        this.zp = zp;
        this.sjc = sjc;
        this.xh = xh;
    }
}
